using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN TieuChiXetDuyetService****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:15/12/2011 45:04:18</para>
	/// <para>Class Name: TieuChiXetDuyetService</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class TieuChiXetDuyetService : ITieuChiXetDuyetService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: TieuChiXetDuyet_ID</para>
		/// <para>Output: TieuChiXetDuyetEntity</para>
		///</summary>
		public TieuChiXetDuyetEntity SelectOne(int TieuChiXetDuyet_ID){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.SelectOne(TieuChiXetDuyet_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TieuChiXetDuyetEntity</para>
		///</summary>
		public List<TieuChiXetDuyetEntity> SelectAll(){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TieuChiXetDuyetEntity</para>
		///</summary>
		public List<TieuChiXetDuyetEntity> SelectAllFilter(string strFilter){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: Save</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TieuChiXetDuyetEntity o){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: Save</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: TieuChiXetDuyetEntity</para>
		///</summary>
		public TieuChiXetDuyetEntity SaveRet(TieuChiXetDuyetEntity o){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TieuChiXetDuyetEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TieuChiXetDuyetEntity> list){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of TieuChiXetDuyetEntity</para>
		/// <para>Output: List of TieuChiXetDuyetEntity</para>
		///</summary>
		public List<TieuChiXetDuyetEntity> SaveListRet(List<TieuChiXetDuyetEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: Update</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TieuChiXetDuyetEntity o){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TieuChiXetDuyetEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TieuChiXetDuyetEntity> list){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateTenTieuChiXetDuyet</para>
		/// <para>Input: NewTenTieuChiXetDuyet,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenTieuChiXetDuyet(string NewTenTieuChiXetDuyet,int TieuChiXetDuyet_ID){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.UpdateTenTieuChiXetDuyet(NewTenTieuChiXetDuyet,TieuChiXetDuyet_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateLoaiXetDuyet</para>
		/// <para>Input: NewLoaiXetDuyet,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiXetDuyet(Byte NewLoaiXetDuyet,int TieuChiXetDuyet_ID){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.UpdateLoaiXetDuyet(NewLoaiXetDuyet,TieuChiXetDuyet_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int TieuChiXetDuyet_ID){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.UpdateGhiChu(NewGhiChu,TieuChiXetDuyet_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateNoiDung</para>
		/// <para>Input: NewNoiDung,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNoiDung(string NewNoiDung,int TieuChiXetDuyet_ID){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.UpdateNoiDung(NewNoiDung,TieuChiXetDuyet_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TieuChiXetDuyetEntity o){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int TieuChiXetDuyet_ID){
			TieuChiXetDuyetDAO dao = new TieuChiXetDuyetDAO();
			return dao.DeleteByID(TieuChiXetDuyet_ID);
		}
		#endregion

		#region Select,delete by TieuChiXetDuyet_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TieuChiXetDuyetWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

